﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>网站管理系统 By 海豚工作室</title>
    <link href="@Url.Content("~/Themes/default/easyui.css")" rel="stylesheet" type="text/css" />

    <link href="@Url.Content("~/Themes/icon.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.8.0.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.easyui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Locale/easyui-lang-zh_CN.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Common.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Plugins/jquery.window.ext.js")" type="text/javascript"></script>
    @RenderSection("Head", required: false)
    <style>
        #toolbar span {
            cursor: pointer;
            margin-right: 4px;
        }

        #toolbar a {
            text-decoration: none;
               color: #accadf;
        }
    </style>
</head>
<body class="easyui-layout">
    @RenderBody()
    <div data-options="region:'north',border:false" style="background: #036; height: 60px">
            <div style="float: left; margin-left: 20px; margin-top: 10px;">
                <span style="font-size: 18px; font-family: 微软雅黑; color: #fc0;">
                    @ViewBag.Site.SiteName</span>
            </div>
        <div id="toolbar" style="float: right; color: #accadf; margin-right: 10px; margin-top: 10px;">
            今天是 @DateTime.Now.ToString("M月d日")，

              <span class="space">@ViewBag.CurrentUser.DisplayName</span><span class="space">|</span><span class="space" id="btnChangePassword">修改密码</span><span class="space">|</span><a  class="space" href="@Url.Action("LoginOut", "admin", new { area = "Admin" })">注销</a> <span class="space"></span>
        </div>
    </div>
    <div data-options="region:'west',split:true,title:'菜单管理'" style="width: 150px; padding: 0px; border-bottom-style: none;">
        @RenderSection("West", required: false)
    </div>

    <div data-options="region:'center'">
        <div class="easyui-layout" data-options="fit:true,border:false">
            <div id="tabs" class="easyui-tabs" data-options="tools:'#tab-tools',region:'center',border:false"
                style="">
            </div>
        </div>
    </div>

</body>

</html>
<script type="text/javascript">
    var dialog;
    $(document).ready(function () {
        $("#btnChangePassword").click(function () {
            dialog = openWindow({
                title: "修改密码",
                url: '@Url.Action("ChangePassword", "Admin")',
                height: 260,
                width: 350,
                isIframe: true,
                toolbar: [
                    {
                        text: '保存',
                        iconCls: "icon-save",
                        handler: function () {

                            //alert(dialog.find("iframe")[0].contentWindow.saveData);
                            dialog.find("iframe")[0].contentWindow.saveData();

                        }
                    },
                    '-',
                    {
                        text: '关闭',
                        iconCls: "icon-no",
                        handler: function () {
                            dialog.dialog("close");
                        }
                    }
                ]
            });
        });
    });
</script>
